<template>
  <div class="content-card">
    <div class="card-top">
      <div class="card-top-left">
        <div v-if="type" :class="type"></div>
        <div class="content-name">{{title}}</div>
        <slot name="top-left" />
      </div>
      <slot name="top-right" />
    </div>
    <div class="card-bottom l-content" :class="[cardPadding?'card-padding':'padd']">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  name: "content-card",
  props: {
    title: String,
    cardPadding: Boolean,
    type: {
      type: String,
      value: "",
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.content-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px -4px 16px 0px rgba(148, 163, 178, 0.05);
  border-radius: 20px 20px 0px 0px;
  border-bottom: 10px solid #f7f7f7;
}

.dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 6px solid #3963bc;
  margin-left: 26px;
}

.line {
  width: 8px;
  height: 28px;
  background: $theme;
  border-radius: 0px 6px 6px 0px;
  margin-right: 22px;
}

.card-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  // border-bottom: 1px dashed #dcebe6;
}

.card-top-left {
  display: flex;
  align-items: center;
}

.content-name {
  font-size: 20px;
  font-family: PingFangSC-Regular;
  font-weight: 700;
  color: rgba(69, 82, 107, 1);
  line-height: 20px;
  margin-left: 8px;
}

.card-bottom {
  width: 100%;
}

.card-padding {
  padding: 38px;
}

.padd {
  /*padding-bottom: 20px;*/
}
</style>
